package io.renren.modules.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.admin.dao.MyCourseDao;
import io.renren.modules.admin.entity.MyCourseEntity;
import io.renren.modules.admin.service.MyCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;



@Service("myCourseService")
public class MyCourseServiceImpl extends ServiceImpl<MyCourseDao, MyCourseEntity> implements MyCourseService {

    @Autowired
    private MyCourseDao myCourseDao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MyCourseEntity> page = this.page(
                new Query<MyCourseEntity>().getPage(params),
                new QueryWrapper<MyCourseEntity>()
        );

        return new PageUtils(page);
    }



}